package com.beiyou.orderingsystemonweb.user.dao;

import com.beiyou.orderingsystemonweb.shop.domain.Shop;
import com.beiyou.orderingsystemonweb.shop.domain.UserAddress;
import com.beiyou.orderingsystemonweb.user.domain.Order;
import com.beiyou.orderingsystemonweb.user.domain.User;

import java.util.List;
import java.util.Map;


public interface UserDao {
    int addInterset(String id,String sid, String uid);
    User queryUserByUid(String uid);
    UserAddress queryUserAddressByUid(String uid);
    void addAddress(String id,String uid,String uname,String uphone,String pos,String lng,String lat);
    void addLogin(String id,String acc,String pwd,Integer type);
    void addUser(String id,String name);
    List<Map> queryOrderCountByUid(String uid);
    List<Shop> queryInterestByUid(String uid);
    List<Map> queryCarByUid(String uid);
    List<Map> queryInterestShopBySid(String sid,Integer begin,Integer end);
    List<Map> queryInterestShopBySidToType(String sid,Integer begin,Integer end,String type);
    int queryAllBySid(String sid);
    List<Map> queryInterestShopListByUid(String uid);
    Map queryPersonByUid(String uid);
    List<Map> queryCountOnMontyByUid(String uid);
    List<Map> queryUserOrderInfoByUserId(String uid);
}
